package org.beynet.jsonbinding.bind;

public class GlossaryEntry {
    
    @JSONElement(name="ID")
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id ;
    }
    
    @JSONElement(name="SortAs")
    public String getSortAs() {
        return sortAs;
    }
    public void setSortAs(String sortAs) {
        this.sortAs = sortAs;
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + ((sortAs == null) ? 0 : sortAs.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        GlossaryEntry other = (GlossaryEntry) obj;
        if (id == null) {
            if (other.id != null)
                return false;
        } else if (!id.equals(other.id))
            return false;
        if (sortAs == null) {
            if (other.sortAs != null)
                return false;
        } else if (!sortAs.equals(other.sortAs))
            return false;
        return true;
    }
    
    
    private String id ;
    private String sortAs ;
    /*
     * 
     * "ID": "SGML",
                    "SortAs": "SGML",
                    "GlossTerm": "Standard Generalized Markup Language",
     * 
     * 
     */
    
}
